package org.fanximall.erp.product.domain.dto;

import lombok.Data;
import org.fanximall.erp.common.enums.StateEnum;
import org.fanximall.erp.common.tree.TreeDefinition;

/**
 * @author :  william
 * @version :  V1.0  created in 2024/4/30
 */
@Data
public class CategoryTreeModel implements TreeDefinition {
    /**
     * 类目id
     */
    private Long categoryId;
    /**
     * 类目名称
     */
    private String nameCn;

    /**
     * 父类目id
     */
    private Long parentId;

    /**
     * 状态
     * @see StateEnum
     */
    private Integer state;
    /**
     * 类目中文名称
     */
    private String nameEn;
    /**
     * 类目层级
     */
    private Integer level;


    @Override
    public Long getId() {
        return categoryId;
    }

    @Override
    public Long getParentId() {
        return parentId;
    }

    @Override
    public String getLabel() {
        return nameCn;
    }
}
